<template>
  <div id="app">
    <Header v-show="isShow"></Header>
    <router-view></router-view>
    <Footer v-show="isShow"></Footer>
  </div>
</template>

<script>
import Header from "./components/Header";
import Footer from "./components/Footer";
// import {getBaseCategoryList} from './api/home'

export default {
  name: "App",
  date: {
    isShow: "true",
  },

  // async mounted() {
  //   let a = await getBaseCategoryList();
  //   console.log(a.data.data, "aaaaaaaaaaaa");
  // },

  computed: {
    isShow() {
      return this.$route.path != "/Login" && this.$route.path != "/Register";
    },
  },
  components: {
    Header,
    Footer,
  },
};
</script>

<style>
</style>
